package inftel.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class inicio extends Activity{
    /** Called when the activity is first created. */
	//ImageButton imageBoton1;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.principal);
        
        ImageButton imagBtMuro = (ImageButton) findViewById(R.id.muro);
        imagBtMuro.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent myIntentMuro = new Intent(inicio.this,MuroActivity.class);
				startActivity(myIntentMuro);
			}
		});
        //ButtonMensaje
        ImageButton imageButton2 = (ImageButton) findViewById(R.id.imageButton2);
        imageButton2.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent myIntentMensaje = new Intent(inicio.this,MensajeActivity.class);
				startActivity(myIntentMensaje);
				
			}
		});
        //ButtonBluetoooth
        ImageButton imageButton3 = (ImageButton) findViewById(R.id.imageButton3);
        imageButton3.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent myIntentBluetooth = new Intent(inicio.this,MensajeBluetooth.class);
				startActivity(myIntentBluetooth);
				
			}
		});
        //Button map
        ImageButton imageButton4 = (ImageButton) findViewById(R.id.imageButton4);
        imageButton4.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent myIntentMap = new Intent(inicio.this,Map.class);
				startActivity(myIntentMap);
				
			}
		});
        
        //Button Editar Perfil
        ImageButton imageButton5 = (ImageButton) findViewById(R.id.imageButton5);
        imageButton5.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent myIntentPerfilEdit = new Intent(inicio.this,EditPerfil.class);
				startActivity(myIntentPerfilEdit);
				
			}
		});
     /*   imageBoton1= (ImageButton) findViewById(R.id.imageButton1);
        imageBoton1.setOnClickListener(new  OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent myIntentMuro = new Intent(inicio.this,MuroActivity.class);
				startActivity(myIntentMuro);
				
			}
		});*/
    }
}